//package com.xiaoai.es.config;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import javax.activation.DataSource;
//
//@Configuration
//public class DataSourceConfig {
//	@Bean("esDataSource")
//	public DataSource esDataSource(EsConfig esConfig) throws Exception {
//		return ElasticSearchDruidDataSourceFactory.createDataSource(esConfig);
//	}
//}